$width: 290px;

.music-info-outer-container {
  width: $width;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.music-info-content-container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;

  &[data-detail-shown="true"] {
    transform: translateY(-100%);
  }
}

.music-info-operations-container {
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;

  & div[role='button'] {
    width: 22px;
    height: 22px;
  }

  & .music-info-operation-divider {
    height: 40%;
    width: 1px;
    background: var(--dividerColor);
  }
}

// 左边的信息区域
.music-info-container {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  width: $width;
  height: 48px;
  /* border-right: 1px solid var(--dividerColor); */
  padding-left: 10px;

  & .open-detail {
    width: 44px;
    height: 44px;
    color: rgba($color: white, $alpha: 0.5);
    position: absolute;
    left: 10px;
    top: 2px;
    transition: all 200ms linear;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba($color: #000000, $alpha: 0.5);
    border-radius: 4px;

    & svg {
      width: 28px;
      height: 28px;
    }

    &:hover {
      opacity: 1;
      backdrop-filter: blur(5px);
    }
  }

  & .music-cover {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
  }

  & .music-info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-left: 10px;
    width: 226px;
    height: 48px;
    padding: 8px 8px 8px 0;
    font-size: 1rem;

    & .music-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1.1rem;
      & span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
      }
    }

    & .music-artist {
      display: flex;
      align-items: center;

      & div {
        opacity: 0.8;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin-right: 0.5rem;
      }

      & .artist {
        flex: 1;
      }

      & .progress {
        flex-shrink: 0;
      }
    }
  }
}
